<?php 
  require_once("../../includes/config.php"); 
  if(isset($_GET['id']))
  {
    $clients = query('SELECT * FROM clients WHERE id = ?',$_GET['id']);
          
    $client = $clients[0];
    $nationalities = query('SELECT * FROM nationalities ORDER BY nationality_value');
    renderWithoutHeader("Customers/edit.php", array("client"=>$client,"nationalities"=>$nationalities,"client_type"=>$client_type));

  }  

?>